{% extends "base.html" %}

{% block titulo %}Enviar Tarea{% endblock %}

{%block style%}<link rel="stylesheet" type="text/css" href="/stylesheets/newsStyle.css" />{%endblock%}


{% block breadcrumbs %}
        {%if course and group%}
                        <div id="middleBreadcrumb">
                            <a href="/home/">home</a> >
                       </div>
                        <div id="middleBreadcrumb">
                            <a href="/course/{{course.code}}/{{group.code}}/">{{course.name}}</a> >
                        </div>
                        <div id="lastBreadcrumb">
                            Tareas
                        </div>
        {%else%}
                <a href="/home/">home</a> >
                        <div id="lastBreadcrumb">
                            Tareas
                        </div>
        {%endif%}
{% endblock %}

{% block cuerpo %}
{% if successBar %}
	{{successBar}}
{% endif %}

        <div id="upload_grades_title"><h3>Envio de Tareas de {{course.name}}</h3></div>
        <br />

<form enctype="multipart/form-data" action="." method="post">
	{%include "forms/form_snippet.html"%}
</form>

{% if tareas %}
<table border="10">
    <th>Nombre</th>
    <th>Fecha</th>
    <th></th>
{%for tarea in tareas%}

        <tr>
                <td width="450">{{tarea.0}}</td>
                <td> {{tarea.1}}</td>
                <td><a href="/tareas/{{course.code}}/{{group.code}}/eliminar/{{tarea.2}}/">Eliminar</a></td>

        </tr>

{%endfor%}
</table>
{% else %}
                <p>No hay comentarios</p>
{% endif %}


{% endblock %}

